package stud.mpgame.network.util;

import stud.mpgame.network.MessageDescription;

import stud.mpgame.network.util.ResponseUserObject;

/**
 * ...
 * @author Timofeev
 */

class ResponseMessageDescription extends MessageDescription {
    
    private static var ID:Int = -1;
    private static var instance:ResponseMessageDescription = null;
    
    private function new() {
        super();
        this.registerUserObject(1, ResponseUserObject);
    }
    
    public override function getID():Int {
        return ID;
    }
    
    public static function getInstance():ResponseMessageDescription {
        if (instance == null) {
            instance = new ResponseMessageDescription();
        }
        return instance;
    }
    
}